//package com.example.behaviour.handler;
//
//import com.example.behaviour.message.GroupMembersRequestMessage;
//import com.example.behaviour.message.GroupMembersResponseMessage;
//import com.example.behaviour.session.GroupSessionFactory;
//import io.netty.channel.ChannelHandler;
//import io.netty.channel.ChannelHandlerContext;
//import io.netty.channel.SimpleChannelInboundHandler;
//
//import java.util.Set;
//
//@ChannelHandler.Sharable
//public class GroupMembersRequestMessageHandler extends SimpleChannelInboundHandler<GroupMembersRequestMessage> {
//    @Override
//    protected void channelRead0(ChannelHandlerContext ctx, GroupMembersRequestMessage msg) throws Exception {
//        Set<String> members = GroupSessionFactory.getGroupSession()
//                .getMembers(msg.getGroupName());
//        ctx.writeAndFlush(new GroupMembersResponseMessage(members));
//    }
//}
